<form class="page" action="<?php echo $adminUrl; ?>/page" method="post">
  <table>
    <thead></thead>
    <tfoot>
      <tr>
        <td></td>
        <td>
          <input type="hidden" name="pageId" value="<?php echo $page->id; ?>" />
          <input type="submit" name="action" value="Preview" />
          <input type="submit" name="action" value="Post" />
        </td>
      </tr>
    </tfoot>
  
    <tbody>
      <tr>
        <th scope="row">
          <label for="pageName">Name</label>
        </th>
        
        <td>
          <input type="text" name="pageName" id="pageName"
              maxlength="200"
              value="<?php echo htmlentities($page->name); ?>" />
        </td>
      </tr>
  
      <tr>
        <th scope="row">
          <label for="pageTitle">Title</label>
        </th>
  
        <td>
          <input type="text" name="pageTitle" id="pageTitle"
              maxlength="255"
              value="<?php echo htmlentities($page->title); ?>" />
        </td>
      </tr>
      
      <tr>
        <th scope="row">
          <label for="pageContent">Content</label>
        </th>
  
        <td>
          <textarea name="pageContent" id="pageContent" rows="20"
              cols="60"><?php echo htmlentities($page->content); ?></textarea>
        </td>
      </tr>
      
      <tr class="tip">
        <td></td>
        <td>
          To link to another page on this site, use wiki-style links like
          [[pagename]] or [[pagename|link text]].
          
          <p>
            To link to an article, use a link like [[@42]] or [[@42|link text]],
            where "42" is the article id.
          </p>
        </td>
      </tr>
    </tbody>
  </table>
</form>